package com.hxz.pojo;

/**
 * @Description
 * @Author 86199
 * @Date 2021/3/26 16:12
 */
import org.springframework.context.ApplicationEvent;

/**
 * 定义事件对象
 */
public class MessageEvent extends ApplicationEvent {
    private String phone;
    private String message;

    public MessageEvent(Object source,String phone,String message) {
        super(source);
        this.phone=phone;
        this.message=message;
    }

    public MessageEvent(Object source) {
        super(source);
    }


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}